package com.javasea.web.spock.service;

import com.javasea.web.spock.entity.User;
import com.javasea.web.spock.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName HelloController
 * @Description TODO
 * @Author longxiaonan@163.com
 * @Date 2019/7/28 0028 0:54
 */
@Service
public class UserService {

    @Resource
    private UserMapper userMapper;
    public String sayHello(){
        userMapper.sayHello();
        System.out.println("HelloService");
        return "hello";
    }

    public User selectById(Long id){
        return userMapper.selectById(id);
    }

}
